package gwtappcontainer.client;

import gwtappcontainer.client.apps.IPresenter;
import gwtappcontainer.client.apps.UndefinedView;

public class PresenterFactory {
	
	public IPresenter getPresenter(String appTitle, String viewTitle) {
		
		IPresenter view = new UndefinedView(appTitle, viewTitle);
		
		if (appTitle.equalsIgnoreCase("home") && viewTitle.equalsIgnoreCase("main"))			
			view = new gwtappcontainer.client.apps.home.main.Presenter();			
		else if (appTitle.equalsIgnoreCase("videos") && viewTitle.equalsIgnoreCase("view"))
			view = new gwtappcontainer.client.apps.videos.view.Presenter();		
		
		return view;
	}
}
